package com.stnet.web.front;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.security.providers.encoding.Md5PasswordEncoder;

import com.modules.commons.PageAction;
import com.modules.util.DateHelper;
import com.opensymphony.xwork2.ActionContext;
import com.stnet.bases.Constants;
import com.stnet.bases.PageConstants;
import com.stnet.entity.Authorities;
import com.stnet.entity.AuthoritiesBean;
import com.stnet.entity.Directorder;
import com.stnet.entity.EnterpriseBulletin;
import com.stnet.entity.EnterpriseColumn;
import com.stnet.entity.EnterpriseLinks;
import com.stnet.entity.EnterpriseNews;
import com.stnet.entity.OnlineRecharge;
import com.stnet.entity.RolesAuthorities;
import com.stnet.entity.Saleorder;
import com.stnet.entity.Transfer;
import com.stnet.entity.Users;
import com.stnet.entity.UsersRoles;
import com.stnet.entity.WebSite;
import com.stnet.front.enterprice.IndexInfoBean;
import com.stnet.front.enterprice.Product;
import com.stnet.front.enterprice.WebMapBean;

/**
 * @author Messcat
 * @version 1.1
 * 
 */
public class EpIndexNewsAction extends PageAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 导航
	 */
	private List<EnterpriseColumn> columnlist;

	private List<IndexInfoBean> newslist;
	/**
	 * 页面所有模块
	 */
	private List<IndexInfoBean> indexlist;

	/**
	 * 友情链接
	 */
	private List<EnterpriseLinks> linklist;

	/**
	 * 通知公告
	 */
	private List<EnterpriseBulletin> bulletinlist;

	/**
	 * 一级栏目的子栏目
	 */
	private List<EnterpriseColumn> subColumnList;

	/**
	 * 栏目的新闻列表
	 */
	private List<EnterpriseNews> newList;

	/**
	 * 一条新闻ID
	 */
	private String newsId;

	/**
	 * 一条新闻内容
	 */
	private EnterpriseNews enterpriseNews;
	/**
	 * 全局模块信息,核心变量
	 */
	private Map map;

	/**
	 * 站点基本信息
	 */
	private WebSite webSite;

	private String title;

	private String content;

	private List<WebMapBean> webMapBean;

	/**
	 * 新闻栏目的ID
	 */
	private String epColumnId;

	/**
	 * 二次开发
	 * */
	private String username;
	private String password;
	private String oldPassword;
	/**
	 * 注册需要信息
	 * */
	private String loginName;
	private String names;
	private String verifypass;
	private String workunit;
	private String zone;
	private String mobile;

	/**
	 * 会员注册页面
	 * */
	private Users users;

	private List<Users> memberList;

	private Transfer transfer;

	private List<Transfer> transferList;

	private String id;

	private Saleorder saleorder;
	private String phonePassword;

	private List<Saleorder> saleorderList;

	private Directorder directorder;
	private List<Directorder> directorderList;

	private List<Authorities> authoritiesList;

	private List<AuthoritiesBean> authoritiesBeanList;

	private List<Product> productList;

	/**
	 * ajax请求之后的折扣价
	 * */
	private String amount;
	private String retailpayment;

	private List<OnlineRecharge> onlineRechargeList;

	/**
	 * 1.检查一级栏目是否为空，如果为空，则查询栏目信息 2.检查模块信息是否为空，如果为空，则查询出模块信息
	 * 
	 * @throws Exception
	 */
	public void infoCheck() throws Exception {

		webSite = this.webSiteManagerDao.getWebSite();
		findColumns();

		if (map == null)
			map = new HashMap();
		findLinks();
		findAds();
		findBulletins();

		findFrontMudoles();
		IndexInfoBean index;
		Iterator iterator = indexlist.iterator();

		while (iterator.hasNext()) {
			index = (IndexInfoBean) iterator.next();
			map.put(index.getEnterpriseColumn().getFrontNum(), index);
		}

	}

	/**
	 * 首页
	 */
	public String execute() throws Exception {
		infoCheck();
		findFrontMudoles();
		if (map == null)
			map = new HashMap();
		IndexInfoBean index;
		Iterator iterator = indexlist.iterator();

		while (iterator.hasNext()) {
			index = (IndexInfoBean) iterator.next();
			map.put(index.getEnterpriseColumn().getFrontNum(), index);
		}

		return PageConstants.INDEX_KEY;
	}

	/**
	 * 登录 1.成功则跳转到主要面板页面. 2.失败则跳转到本页面.
	 */
	public String login() throws Exception {
		showMesscat = true;

		infoCheck();
		Map session = (Map) ActionContext.getContext().getSession();

		String event = PageConstants.INDEX_KEY;

		Users users = usersManagerDao.getUsersByLoginName(username);
		
		if(null == users || null == users.getState() || "0".equals(users.getState()))
		{
			this.addActionMessage("用户未通过审核,请等待管理员的审核!");
		}else{
		
			if (null != users && null != users.getType()) {
				if (!"2".equals(users.getType())) {
	
					final String t_password = (new Md5PasswordEncoder()).encodePassword(password, username);
					if (t_password.equals(users.getPassword())) {
	
						if (session.get("member") != null)
							session.remove("member");
	
						session.put("member", users);
						session.put("memberID", users.getId());
						showMesscat = false;
						event = PageConstants.MAIN_KEY;
					} else {
						this.addActionMessage("用户密码错误!");
					}
				} else {
					this.addActionMessage("管理员请在管理员入口登录!");
				}
			} else {
				this.addActionMessage("用户不存在!");
			}
			}

		return event;
	}

	/**
	 * 个人信息内页
	 */
	public String person() throws Exception {
		infoCheck();

		return PageConstants.PERSON_KEY;
	}

	/**
	 * 退出系统
	 * 
	 * @return INDEX_KEY
	 * @throws Exception
	 */
	public String logout() throws Exception {
		infoCheck();
		Map session = (Map) ActionContext.getContext().getSession();
		if (session.get("member") != null)
			session.remove("member");

		return PageConstants.INDEX_KEY;
	}

	/**
	 * 商户信息内页
	 */
	public String myinformation() throws Exception {
		infoCheck();

		return PageConstants.MYINFO_KEY;
	}

	/**
	 * 存款记录内页
	 */
	public String saveMoney() throws Exception {
		infoCheck();

		return PageConstants.SAVEMONEY_KEY;
	}

	/**
	 * 重置密码内页
	 */
	public String resetpassword() throws Exception {
		infoCheck();

		return PageConstants.RESETPWD_KEY;
	}

	/**
	 * 修改密码
	 * 
	 * @return
	 * @throws Exception
	 */
	public String updatePwd() throws Exception {

		infoCheck();

		Users userTemp = null;
		Map session = (Map) ActionContext.getContext().getSession();

		if (session.get("member") != null)
			userTemp = (Users) session.get("member");

		final String t_password = (new Md5PasswordEncoder()).encodePassword(password, userTemp.getLoginName());

		userTemp.setPassword(t_password);
		this.usersManagerDao.updateUsers(userTemp);
		session.put("users", userTemp);
		this.addActionMessage("密码修改成功!");

		return PageConstants.RESETPWD_KEY;

	}

	/**
	 * 我的会员内页
	 */
	public String mymember() throws Exception {
		infoCheck();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			this.memberList = this.usersManagerDao.findMemberByAgent(users.getId());

		} catch (Exception e) {
			e.printStackTrace();
		}
		return PageConstants.MYMEMBER_KEY;
	}

	/**
	 * 删除我的会员 只修改状态为 0 ,不删除
	 */
	public String deleteMember() throws Exception {
		infoCheck();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			Users user = this.usersManagerDao.getUsersById(Long.valueOf(id));
			user.setEditor(null);
			this.usersManagerDao.updateUsers(user);

		} catch (Exception e) {
			e.printStackTrace();
		}
		return this.mymember();
	}

	/**
	 * 添加会员
	 */
	public String addMemberByAgent() throws Exception {
		infoCheck();
		this.clearMessages();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			Users user = this.usersManagerDao.getUsersByLoginName(mobile);
			if (user == null) {
				this.addActionMessage("会员不存在");
			} else if (user.getEditor() != null && !"".equals(user.getEditor())) {
				this.addActionMessage("此用户已成为其他代理商的会员,不能对其进行操作");
			} else {
				user.setEditor(users.getId());
				this.usersManagerDao.updateUsers(user);
				this.addActionMessage("会员添加成功");
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
		return this.mymember();
	}

	/**
	 * 交易记录内页
	 */
	public String payrecord() throws Exception {
		infoCheck();

		return PageConstants.PAYRECORED_KEY;
	}

	/**
	 * 商户信息内页
	 */
	public String transfer() throws Exception {
		infoCheck();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");
			// 设置完成
			pageSize = 5;

			super.pager = this.transferManagerDao.getListByAgent(pageSize, pageNo, users.getId());
			this.transferList = super.pager.getResultList();

		} catch (Exception e) {
			e.printStackTrace();
		}
		return PageConstants.TRANSFER_KEY;
	}

	/**
	 * 商户注册页面
	 */
	public String register() throws Exception {
		infoCheck();

		return PageConstants.REGISTER_KEY;
	}

	/**
	 * 注册会员
	 */
	public String memberRegister() throws Exception {

		infoCheck();

		String event = PageConstants.REGISTER_KEY;
		try {
			if (this.password.equals(this.verifypass)) {
				users = new Users();
				users.setCommissionbalance(0L);
				users.setPassword((new Md5PasswordEncoder()).encodePassword(this.password, this.loginName));
				users.setEdittime(new Date());
				users.setWalletbalance(0D);
				users.setDiscount(100L);
				users.setLevel("0");
				users.setState("0");
				users.setType("0");
				users.setLoginName(this.loginName);
				users.setWorkunit(workunit);
				users.setMobile(mobile);
				users.setZone(zone);
				users.setName(names);
				usersManagerDao.registerUsers(users);

				this.addActionMessage("注册成功!");

				Map session = (Map) ActionContext.getContext().getSession();
				if (session.get("member") != null)
					session.remove("member");
				session.put("member", users);
				session.put("memberID", users.getId());
			} else {
				System.out.println("重复密码不一致");
			}

			event = PageConstants.INDEX_KEY;

		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("注册失败");
		}

		return event;
	}

	/**
	 * 修改个人信息
	 */
	public String updateMyInfo() throws Exception {

		infoCheck();

		try {
			Users usertemp = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				usertemp = (Users) session.get("member");

			usertemp.setMobile(users.getMobile());
			usertemp.setName(users.getName());
			usertemp.setZone(users.getZone());
			usertemp.setWorkunit(users.getWorkunit());
			usertemp.setPostcode(users.getPostcode());
			usertemp.setWorkphone(users.getWorkphone());
			usertemp.setAddress(users.getAddress());
			usertemp.setId(users.getId());

			usersManagerDao.updateUsers(usertemp);

			this.addActionMessage("修改成功!");
			this.users = usertemp;
			session.put("member", usertemp);

		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("修改失败");
		}

		return PageConstants.MYINFO_KEY;
	}

	/**
	 * 录入转账信息
	 */
	public String addTransfer() throws Exception {

		infoCheck();

		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			transfer.setEditedate(new Date());
			transfer.setState("0");
			transfer.setUser(users);
			transfer.setId(null);

			this.transferManagerDao.addTransfer(transfer);

		} catch (Exception e) {
			e.printStackTrace();
		}

		return this.transfer();
	}

	/**
	 * 录入转账信息
	 */
	public String deleteTransfer() throws Exception {

		infoCheck();

		try {
			this.transferManagerDao.deleteTransfer(Long.valueOf(id));

		} catch (Exception e) {
			e.printStackTrace();
		}

		return this.transfer();
	}

	/**
	 * main的主页
	 */
	public String mainPage() throws Exception {

		infoCheck();

		return PageConstants.MAIN_KEY;
	}

	/**
	 * 添加优惠充值订单
	 * 
	 * @return
	 * @throws Exception
	 */
	public String addSalesorder() throws Exception {

		infoCheck();
		this.showMesscat = true;

		try {

			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			saleorder.setEditetime(new Date());
			saleorder.setPhonePassword(phonePassword);
			saleorder.setPaymentState("0");
			saleorder.setState("1");
			saleorder.setPhoneState("0");
			saleorder.setDiscount(Long.valueOf(this.amount));
			saleorder.setSaleNo(mobile);
			saleorder.setUser(users);
			saleorder.setSaleType(this.authoritiesManagerDao.getAuthorities(Long.valueOf(saleorder.getSaleType())).getName());

			Users member = this.usersManagerDao.getUsersByLoginName(mobile);
			if (member != null)
				saleorder.setSUser(member.getId());
			this.saleorderManagerDao.addSaleorder(saleorder);
			this.addActionMessage("提交订单成功");

		} catch (Exception e) {

			this.addActionMessage("提交订单失败");
		}
		return salesorder();
	}

	/**
	 * 优惠充值页面
	 */
	public String salesorder() throws Exception {

		infoCheck();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			users = this.usersManagerDao.getUsersById(users.getId());

			Set<UsersRoles> urset = users.getUsersRoleses();
			Iterator iter = urset.iterator();
			UsersRoles ur = (UsersRoles) iter.next();

			// this.authoritiesList =
			// this.authoritiesManagerDao.findAuthorities("2", "1");
			this.authoritiesBeanList = this.authoritiesManagerDao.findAuthoritiesByRose("2", "1", ur.getRoles().getId());
			RolesAuthorities rolesAuthorities = null;

			if (authoritiesBeanList != null && authoritiesBeanList.size() > 1)
				rolesAuthorities = this.rolesAuthoritiesManagerDao.getOneByRolesIdAndAuthId(ur.getRoles().getId(),
					authoritiesBeanList.get(0).getId());

			if (rolesAuthorities != null) {
				this.amount = rolesAuthorities.getPayment();
				this.retailpayment = rolesAuthorities.getRetailpayment();
			}
			// 设置完成
			pageSize = 5;

			super.pager = this.saleorderManagerDao.getListByAgent(pageSize, pageNo, users.getId());
			this.saleorderList = super.pager.getResultList();

		} catch (Exception e) {
			e.printStackTrace();
		}

		return PageConstants.SALESORDER_KEY;
	}

	/**
	 * 添加在线充值订单
	 * 
	 * @return
	 * @throws Exception
	 */
	public String addDirectorder() throws Exception {

		infoCheck();
		try {

			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			Set<UsersRoles> urset = users.getUsersRoleses();
			Iterator iter = urset.iterator();
			UsersRoles ur = (UsersRoles) iter.next();

			Authorities auth = this.authoritiesManagerDao.getAuthorities(directorder.getAmount());

			directorder.setEditetime(new Date());
			directorder.setNo(mobile);
			directorder.setPaymentState("0");
			directorder.setState("1");
			directorder.setPhoneState("0");
			directorder.setUser(users);
			directorder.setAmount(Long.valueOf(auth.getName()));
			directorder.setDiscount(Double.valueOf(amount));
			// 订单号=时间+随机数
			String outtradeid = new DateHelper().getRandomNum();
			directorder.setOuttradeid(outtradeid);

			Users member = this.usersManagerDao.getUsersByLoginName(mobile);
			if (member != null)
				directorder.setSUser(member.getId());
			this.directorderManagerDao.addDirectorder(directorder);
			this.addActionMessage("提交订单成功");
		} catch (Exception e) {
			e.printStackTrace();
			this.addActionMessage("提交订单失败");
		}
		return directorder();
	}

	/**
	 * 在线充值页面
	 */
	public String directorder() throws Exception {

		infoCheck();
		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			users = this.usersManagerDao.getUsersById(users.getId());

			Set<UsersRoles> urset = users.getUsersRoleses();
			Iterator iter = urset.iterator();
			UsersRoles ur = (UsersRoles) iter.next();

			this.authoritiesList = this.authoritiesManagerDao.findAuthorities("2", "2");

			RolesAuthorities rolesAuthorities = null;

			if (authoritiesList != null && authoritiesList.size() > 1)
				rolesAuthorities = this.rolesAuthoritiesManagerDao.getOneByRolesIdAndAuthId(ur.getRoles().getId(), authoritiesList
					.get(0).getId());

			if (rolesAuthorities != null)
				this.amount = rolesAuthorities.getPayment();

			// 设置完成
			pageSize = 5;

			/*
			 * super.pager = this.directorderManagerDao.getListByAgent(pageSize,
			 * pageNo, users.getId()); this.directorderList =
			 * super.pager.getResultList();
			 */
			super.pager = this.onlineRechargeManagerDao.getListByAgent(pageSize, pageNo, users.getId());
			this.onlineRechargeList = super.pager.getResultList();

		} catch (Exception e) {
			e.printStackTrace();
		}

		return PageConstants.DIRECTORDER_KEY;
	}

	/**
	 * Ajax请求折扣价
	 */
	public String getAmountBySalesorder() throws Exception {

		try {
			Users users = null;
			Map session = (Map) ActionContext.getContext().getSession();
			if (session.get("member") != null)
				users = (Users) session.get("member");

			users = this.usersManagerDao.getUsersById(users.getId());

			Set<UsersRoles> urset = users.getUsersRoleses();
			Iterator iter = urset.iterator();
			UsersRoles ur = (UsersRoles) iter.next();

			RolesAuthorities rolesAuthorities = null;

			rolesAuthorities = this.rolesAuthoritiesManagerDao.getOneByRolesIdAndAuthId(ur.getRoles().getId(), Long.valueOf(id));

			if (rolesAuthorities != null) {
				this.amount = rolesAuthorities.getPayment();
				this.retailpayment = rolesAuthorities.getRetailpayment();
			}

		} catch (Exception e) {
			e.printStackTrace();
		}

		return Constants.SUCCESS_KEY;
	}

	/** 二次开发结尾 */

	/**
	 * 跳转到网站地图
	 * 
	 * @return
	 * @throws Exception
	 */
	public String webmap() throws Exception {

		infoCheck();
		webMapBean = null;
		webMapBean = new ArrayList<WebMapBean>();
		EnterpriseColumn temp = null;
		WebMapBean tempWebMapBean = null;
		if (columnlist != null && columnlist.size() > 0)
			for (int i = 0; i < columnlist.size(); i++) {
				tempWebMapBean = new WebMapBean();
				temp = columnlist.get(i);
				tempWebMapBean.setEnterpriseColumn(temp);
				tempWebMapBean.setEnterpriseColumnList(epColumnManagerDao.findSubColumn(temp.getId()));
				webMapBean.add(tempWebMapBean);
			}

		return "webmap";
	}

	/**
	 * 查看一条新闻页面
	 * 
	 * @return
	 * @throws Exception
	 */
	public String news() throws Exception {
		try {
			infoCheck();

			this.enterpriseNews = epNewsManagerDao.getEpNews(Long.valueOf(newsId));
		} catch (Exception e) {
			this.addActionMessage("此新闻已删除");
		}
		return PageConstants.NEWS;
	}

	/**
	 * 新闻栏目more页面
	 * 
	 * @return
	 * @throws Exception
	 */
	public String news_more() throws Exception {

		infoCheck();

		this.newList = null;

		EnterpriseColumn enterpriseColumn = epColumnManagerDao.getEnterpriseColumn(Long.valueOf(epColumnId));

		/**
		 * 设置子栏目
		 */
		List list = epColumnManagerDao.findSubColumn(Long.valueOf(epColumnId));
		newslist = new ArrayList<IndexInfoBean>();
		Iterator iter = list.iterator();

		EnterpriseColumn columnTempObject = null;
		IndexInfoBean indexInfoBean = null;

		Long tempColumnId = 0L;

		while (iter.hasNext()) {
			indexInfoBean = new IndexInfoBean();
			columnTempObject = (EnterpriseColumn) iter.next();
			indexInfoBean.setEnterpriseColumn(columnTempObject);
			newslist.add(indexInfoBean);
		}
		/**
		 * 设置查询条件
		 */
		EnterpriseNews temp = new EnterpriseNews();
		temp.setState("1");
		temp.setTitle("");
		EnterpriseColumn tempColumn = new EnterpriseColumn();

		tempColumn.setFather(Long.valueOf(epColumnId));

		temp.setEnterpriseColumn(tempColumn);

		// 设置完成
		pageSize = 20;

		super.pager = epNewsManagerDao.findEpNews(pageSize, pageNo, temp);
		List resultList = super.pager.getResultList();

		this.setNewList(resultList);

		return PageConstants.NEWS_MORE;
	}

	/**
	 * 根据栏目ID查看此栏目的新闻
	 * 
	 * @return
	 * @throws Exception
	 */
	public String introduction() throws Exception {

		try {
			infoCheck();

			this.enterpriseNews = epNewsManagerDao.getEpNewsByColumnId(Long.valueOf(epColumnId));

			epColumnId = null;

		} catch (Exception e) {
			this.addActionMessage("新闻不存在");
		}
		return PageConstants.INTRODUCTION_KEY;
	}

	/**
	 * 查看一条内部新闻页面
	 * 
	 * @return
	 * @throws Exception
	 */
	public String newsView() throws Exception {
		try {
			infoCheck();

			this.enterpriseNews = epNewsManagerDao.getEpNews(Long.valueOf(newsId));
		} catch (Exception e) {
			this.addActionMessage("此新闻已删除");
		}
		return PageConstants.NEWS_VIEW;
	}

	/**
	 * 查看一条公告页面
	 * 
	 * @return
	 * @throws Exception
	 */
	public String bulletins() throws Exception {

		infoCheck();

		return PageConstants.BULLETIN;
	}

	public void findColumns() throws Exception {
		columnlist = epColumnManagerDao.findSubColumn(0L);
	}

	/**
	 * 查找所有的标示为非空的栏目模块,包括了栏目，与栏目新闻
	 * 
	 * @throws Exception
	 */
	public void findFrontMudoles() throws Exception {
		indexlist = epColumnManagerDao.findFrontInfoFrontNumNotNull();
	}

	/**
	 * 查找7条记录的通知公告信息
	 * 
	 * @throws Exception
	 */
	public void findBulletins() throws Exception {
		bulletinlist = epBulletinManagerDao.getEpInfoByClassAndSize(7L, "-1");
	}

	/**
	 * 根据标识,查看友情链接信息
	 * 
	 * @throws Exception
	 */
	public void findLinks() throws Exception {

		List<String> tempLinkList = this.epLinksManagerDao.getDistinctFrontNum();
		for (String temp : tempLinkList) {
			map.put(temp, this.epLinksManagerDao.findAllByFrontNum(temp));
		}
		tempLinkList = null;
	}

	/**
	 * 查找所有广告和按照标识查找广告
	 * 
	 * @throws Exception
	 */
	public void findAds() throws Exception {
		List<String> tempAdList = this.epAdManagerDao.getDistinctFrontNum();
		for (String temp : tempAdList) {
			map.put(temp, this.epAdManagerDao.findAllByFrontNum(temp));
		}
	}

	public List<EnterpriseColumn> getColumnlist() {
		return columnlist;
	}

	public void setColumnlist(List<EnterpriseColumn> columnlist) {
		this.columnlist = columnlist;
	}

	public List<IndexInfoBean> getNewslist() {
		return newslist;
	}

	public void setNewslist(List<IndexInfoBean> newslist) {
		this.newslist = newslist;
	}

	public List getIndexlist() {
		return indexlist;
	}

	public void setIndexlist(List indexlist) {
		this.indexlist = indexlist;
	}

	public List<EnterpriseLinks> getLinklist() {
		return linklist;
	}

	public void setLinklist(List<EnterpriseLinks> linklist) {
		this.linklist = linklist;
	}

	public List<EnterpriseBulletin> getBulletinlist() {
		return bulletinlist;
	}

	public void setBulletinlist(List<EnterpriseBulletin> bulletinlist) {
		this.bulletinlist = bulletinlist;
	}

	public List<EnterpriseColumn> getSubColumnList() {
		return subColumnList;
	}

	public void setSubColumnList(List<EnterpriseColumn> subColumnList) {
		this.subColumnList = subColumnList;
	}

	public List<EnterpriseNews> getNewList() {
		return newList;
	}

	public void setNewList(List<EnterpriseNews> newList) {
		this.newList = newList;
	}

	public String getNewsId() {
		return newsId;
	}

	public void setNewsId(String newsId) {
		this.newsId = newsId;
	}

	public EnterpriseNews getEnterpriseNews() {
		return enterpriseNews;
	}

	public void setEnterpriseNews(EnterpriseNews enterpriseNews) {
		this.enterpriseNews = enterpriseNews;
	}

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}

	public WebSite getWebSite() {
		return webSite;
	}

	public void setWebSite(WebSite webSite) {
		this.webSite = webSite;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public List<WebMapBean> getWebMapBean() {
		return webMapBean;
	}

	public void setWebMapBean(List<WebMapBean> webMapBean) {
		this.webMapBean = webMapBean;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public List<Users> getMemberList() {
		return this.memberList;
	}

	public void setMemberList(List<Users> memberList) {
		this.memberList = memberList;
	}

	public Transfer getTransfer() {
		return this.transfer;
	}

	public void setTransfer(Transfer transfer) {
		this.transfer = transfer;
	}

	public List<Transfer> getTransferList() {
		return this.transferList;
	}

	public void setTransferList(List<Transfer> transferList) {
		this.transferList = transferList;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOldPassword() {
		return this.oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getNames() {
		return this.names;
	}

	public void setNames(String names) {
		this.names = names;
	}

	public String getWorkunit() {
		return this.workunit;
	}

	public void setWorkunit(String workunit) {
		this.workunit = workunit;
	}

	public String getZone() {
		return this.zone;
	}

	public void setZone(String zone) {
		this.zone = zone;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getVerifypass() {
		return this.verifypass;
	}

	public void setVerifypass(String verifypass) {
		this.verifypass = verifypass;
	}

	public Saleorder getSaleorder() {
		return this.saleorder;
	}

	public void setSaleorder(Saleorder saleorder) {
		this.saleorder = saleorder;
	}

	public String getPhonePassword() {
		return this.phonePassword;
	}

	public void setPhonePassword(String phonePassword) {
		this.phonePassword = phonePassword;
	}

	public List<Saleorder> getSaleorderList() {
		return this.saleorderList;
	}

	public void setSaleorderList(List<Saleorder> saleorderList) {
		this.saleorderList = saleorderList;
	}

	public Directorder getDirectorder() {
		return this.directorder;
	}

	public void setDirectorder(Directorder directorder) {
		this.directorder = directorder;
	}

	public List<Directorder> getDirectorderList() {
		return this.directorderList;
	}

	public void setDirectorderList(List<Directorder> directorderList) {
		this.directorderList = directorderList;
	}

	public List<Authorities> getAuthoritiesList() {
		return this.authoritiesList;
	}

	public void setAuthoritiesList(List<Authorities> authoritiesList) {
		this.authoritiesList = authoritiesList;
	}

	public String getAmount() {
		return this.amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getEpColumnId() {
		return this.epColumnId;
	}

	public void setEpColumnId(String epColumnId) {
		this.epColumnId = epColumnId;
	}

	public List<Product> getProductList() {
		return productList;
	}

	public void setProductList(List<Product> productList) {
		this.productList = productList;
	}

	public List<OnlineRecharge> getOnlineRechargeList() {
		return onlineRechargeList;
	}

	public void setOnlineRechargeList(List<OnlineRecharge> onlineRechargeList) {
		this.onlineRechargeList = onlineRechargeList;
	}

	public String getRetailpayment() {
		return retailpayment;
	}

	public void setRetailpayment(String retailpayment) {
		this.retailpayment = retailpayment;
	}

	public List<AuthoritiesBean> getAuthoritiesBeanList() {
		return authoritiesBeanList;
	}

	public void setAuthoritiesBeanList(List<AuthoritiesBean> authoritiesBeanList) {
		this.authoritiesBeanList = authoritiesBeanList;
	}

}